﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace l1cs.server.serverpackets
{
    public class S_CharCreateStatus : ServerBasePacket
    {
        public const int REASON_OK = 0x02;
        public const int REASON_ALREADY_EXSISTS = 0x06;
        public const int REASON_INVALID_NAME = 0x09;
        public const int REASON_WRONG_AMOUNT = 0x15;

        public S_CharCreateStatus( int reason )
        {
            writeC( Opcodes.S_OPCODE_NEWCHARWRONG );
            writeC( reason );
            writeD( 0x00000000 );
            writeD( 0x0000 );
        }

        override
        public byte[] getContent()
        {
            return getBytes();
        }

        override
        public String getType()
        {
            return "[S] S_CharCreateStatus";
        }
    }
}
